package com.silence.tool.exception;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author silence
 * @email 792245022@qq.com
 * @create 2023-09-19 11:50
 */
@Data
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ApiException", description = "自定义异常类")
public class ApiException extends RuntimeException {

    /**
     * 状态码
     */
    @Schema(description = "状态码")
    private int code;

    /**
     * 异常信息
     */
    @Schema(description = "异常信息")
    private String msg;

}

